<html><head><title>WritePreferenceFloat</title></head>
<body bgcolor="#EFF1F0" link="#3A3966" vlink="#000000" alink="#000000">
<font face="Verdana, sans-serif" size="2"><p align="center"><b><font size="4">WritePreferenceFloat()</font></b></p>
<p><b>Syntax</b></p><blockquote>
<font color="#3A3966"><b>WritePreferenceFloat</b></font>(Key$, Value.f)</blockquote>

</blockquote>
<b>Description</b><br><blockquote>

Creates or changes the specified key and its associated float value under the form: 'Key$ = Value' in the 
preference file, previously created with <a href="createpreferences.html">CreatePreferences()</a> or opened 
with <a href="openpreferences.html">OpenPreferences()</a>. 

</blockquote><p><b>Parameters</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>Key$</i></td>
<td width="90%"> 
The key name to write. If <a href="preferencegroup.html">PreferenceGroup()</a> has been 
used, then the write is restricted to the current group. If the key was already created, 
its associated value is replaced with the new specified value. 

</td></tr>
<tr><td><i>Value</i></td>
<td> 
The float value to associate with the key. 

</td></tr>
</table>
</blockquote><p><b>Return value</b></p><blockquote>
None.


</blockquote><p><b>Example</b></p><blockquote>

<pre><font face="Courier New, Courier, mono"size="2">  <font color="#3A3966">; Create the preference file prefs.txt</font>
  <b><font color="#3A3966">If</font></b> <font color="#3A3966">CreatePreferences</font>(<font color="#3A3966">GetTemporaryDirectory</font>()+&quot;Prefs.txt&quot;, <font color="#924B72">#PB_Preference_GroupSeparator</font>)
<font color="#3A3966">    PreferenceGroup</font>(&quot;Window&quot;)
<font color="#3A3966">      WritePreferenceString</font>(&quot;Title&quot;, &quot;PureNote&quot;) 
<font color="#3A3966">      WritePreferenceLong </font>(&quot;X&quot;, 100)
<font color="#3A3966">      WritePreferenceLong </font>(&quot;Y&quot;, 125)
<font color="#3A3966">      WritePreferenceInteger</font>(&quot;I&quot;, 1024) 
<font color="#3A3966">      WritePreferenceQuad</font>(&quot;Q&quot;, 9223372036854775807)
<font color="#3A3966">      WritePreferenceFloat</font>(&quot;%&quot;, 20.10)
<font color="#3A3966">      WritePreferenceDouble</font>(&quot;D&quot;, 0.0123456789 )
<font color="#3A3966">    ClosePreferences</font>()   
<font color="#3A3966">    RunProgram</font>(<font color="#3A3966">GetTemporaryDirectory</font>()+&quot;Prefs.txt&quot;)
    <b><font color="#3A3966">EndIf</font></b>
</font></pre>

</blockquote><p><b>See Also</b></p><blockquote>

<a href="writepreferencedouble.html">WritePreferenceDouble()</a>, <a href="writepreferenceinteger.html">WritePreferenceInteger()</a>, <a href="writepreferencelong.html">WritePreferenceLong()</a>, <a href="writepreferencequad.html">WritePreferenceQuad()</a>, <a href="writepreferencestring.html">WritePreferenceString()</a> 

</Blockquote><p><b>Supported OS </b><Blockquote>All</Blockquote></p><center><- <a href=writepreferencedouble.html>WritePreferenceDouble()</a> - <a href="index.html">Preference Index</a> - <a href="writepreferenceinteger.html">WritePreferenceInteger()</a> -><br><br>

</body></html>